var xhr = new XMLHttpRequest();
xhr.open("get", `../php/isExist.php?user=${userIpt}`, true);
xhr.send();
xhr.onreadystatechange = function () {

    if (xhr.readyState == 4 && xhr.status == 200) {
        var { status, detail } = JSON.parse(xhr.responseText);
        if (status) {
            tips.innerHTML = `
            √
`
            // console.log(detail)
            userFlag = true;
        } else {
            tips.innerHTML = `
            ${detail}
                    `
        }
    }
}
function re(url, parmes, success) {
    return new Promise(function (resolve, reject) {
        ajax({
            url: url,
            data: { ...parems },
            type: "get",
            dataType: "json",
            success: function (reuslut) {
                resolve(reslut);
            }
        })
    })

}
